define(function() {
	return {
		check_type : function(file_name){
			var filepath = file_name;
			var extStart = filepath.lastIndexOf(".");
			var ext = filepath.substring(extStart, filepath.length).toUpperCase();
			if (ext != ".DOC" && ext != ".XLS" && ext != ".PPT" && ext != ".JPG"
					&& ext != ".JPEG" && ext != ".PDF" && ext != ".DWG"
					&& ext != ".PSD" && ext != ".DOCX" && ext != ".XLSX"
					&& ext != ".PPTX" && ext != ".AI" && ext != ".PNG" && ext != ".BMP"
					&& ext != ".GIF" && ext != ".CDR" && ext != ".TXT"
					&& ext != ".mp4" && ext != ".3gp" && ext != ".rmb" && ext != ".mpg" && ext != ".avi" && ext != ".mp3") {
	//			 alert("您上传的文件类型不支持！");
				return false;
	
			}
			return true;
		}
	}
});